//
//
///
///
///Page of show seleted can channels
///
///setting and new channel for system.
///
#ifndef NEWCANSELINFOPAGE_H
#define NEWCANSELINFOPAGE_H
//add qdialog headfile
#include <QDialog>
#include <QWidget>
#include"cansettings.h"

//NewCanSelInfoPage singleton
#include <QMutex>
#include <QMutexLocker>
#include <QDebug>
#include<QStyleFactory>


namespace Ui {
class NewCanSelInfoPage;
}

class NewCanSelInfoPage : public QWidget
{
    Q_OBJECT

public:
    //get instance
    static NewCanSelInfoPage *getInstance();
    ~NewCanSelInfoPage();
    static QString getcomboxselchannel();
    static void setcomboxselchannel(QString &numchannel);


private slots:
    void on_pushButtonCan_clicked();

private:
    explicit NewCanSelInfoPage(QWidget *parent = nullptr);
    Ui::NewCanSelInfoPage *ui;
    // //add cansettings
    // CanSettings *cansettings;
    static NewCanSelInfoPage* instance;
    static QString comboxselchannelnum;
};

#endif // NEWCANSELINFOPAGE_H
